package example;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class Person {
    public String name = "Person";
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {

    }

    private Person(String name) {
        this.name = name;
    }

    public void eat() {
        System.out.println("The person is eating...");
    }

    public static void swim() {
        System.out.println("swimming...");
    }

    private void sleep() {
        System.out.println("Sleeping...");
    }

}
